package 里氏替换原则;

public class BHHorse implements BlackHorse {
    private char breed;

    public BHHorse(char breed) {
        this.breed = breed;
    }

    @Override
    public void getColor(char color) {
        System.out.println("这是一匹"+breed+color+"马");
    }

    @Override
    public void Horse() {
        getColor('黑');
    }
}
